#include "e2d/imgui/physics/Editor.h"
#include "e2d/core/physics/components.h"

using Editor = e2d::BasicEditor;

template<>
bool Editor::Edit<e2d::FixedJoint>(const std::string& l, e2d::FixedJoint& e)
{
	e2d::CustomEditor::ComboEditEntity("m_Left", e.m_Left, e.m_Entity->GetComponentChildrenMap<e2d::RigidbodyDynamic>());
	e2d::CustomEditor::ComboEditEntity("m_Right", e.m_Right, e.m_Entity->GetComponentChildrenMap<e2d::RigidbodyDynamic>());

	EditInst<e2d::Transform>("m_LeftTransform", e.m_LeftTransform);
	EditInst<e2d::Transform>("m_RightTransform", e.m_RightTransform);
	return false;
}